#!/usr/bin/python
# -*- coding: iso-8859-2 -*-
import sys
import os
from string import Template
def makeenvs(dict):
    for key in dict.keys():
        dict[key] = os.environ[dict[key]]
    return dict
win32envs = {
                "user":"USERNAME",
                "homedir":"HOMEPATH",
                
            }
posixenvs = {
                "user":"USER",
                "homedir":"HOME",
                
            }
toprint = Template("UŜytkownik $user o katalogu domowym $homedir działa na komputerze");
if os.name == "nt" or sys.platform == "win32":
    print toprint.substitute(makeenvs(win32envs));
elif os.name == "posix":
    print toprint.substitute(makeenvs(posixenvs));
print "\033[32mThis is blue\033[0m"
